package com.mlethe.android.demo.recyclerview.adapter;

import android.widget.TextView;

import androidx.annotation.NonNull;

import com.mlethe.android.demo.R;
import com.mlethe.library.recyclerview.adapter.BaseGridPagerAdapter;
import com.mlethe.library.recyclerview.viewholder.ViewHolder;

public class ViewPagerAdapter extends BaseGridPagerAdapter<String> {
    public ViewPagerAdapter() {
        super(R.layout.item_recycler_view_adapter_text);
    }

    @Override
    protected void convert(@NonNull ViewHolder holder, String item, int position, int remainder) {
        TextView textView = holder.setText(R.id.text_view, item)
                .getView(R.id.text_view);
    }
}
